const path = require('path')

module.exports = {
    mode:'production',
    entry: path.resolve(__dirname,'src/main.ts'),
    output: {
        filename: "index.js",
        environment: {
            arrowFunction: true
        }
    },
    resolve: {
        extensions: ['.js','.ts','.json'],
        alias: {
            '@':path.resolve(__dirname,'./src')
        }
    },
    module: {
        rules: [
            {
                test:/\.ts$/,
                use:[
                    'babel-loader',
                    'ts-loader'
                ],
                exclude: /node_modules/,
            }
        ]
    }

}
